package com.xxzuibang.day15.包装类;

public class Demo5 {
    public static void main(String[] args) {
        Integer i=new Integer(1);
        Integer j=new Integer(1);
        System.out.println(i==j);//false new代表地址变了

        //new看地址，equal看内容

        Integer m=1;
        Integer n=1;
        System.out.println(m==1);//true

        Integer x=128;
        Integer y=128;
        System.out.println(x==y);//false  范围是-128-127  超出会new
    }
}
